package main

import (
	"fmt"
	"sort"
)

func CheckAInArr(a interface{}, arr interface{}) {

	if _, ok := a.(int); ok {
		arr = arr.(int)
	} else if _, ok := a.(string); ok {
		arr = arr.(string)
	} else if _, ok := a.(float64); ok {
		arr = arr.(float64)
	}

	fmt.Println(arr)
}

type People interface {
	Show()
}

type Student struct{}

func (stu *Student) Show() {

}

func live() People {
	var stu *Student
	return stu
}

type aaa struct {
	A interface{}
	B string
}

func main() {
	//type Myint1 int
	//type Myint2 int
	//
	//i:= 9
	//
	//var i1 Myint1 = Myint1(i)
	//var i2 Myint2 = Myint2(i)
	//
	//fmt.Println(i1, i2)

	a := []string{"/test", "/add", "/delete", "/path/getUrl"}
	b := "/path/getUrl"

	strings := sort.SearchStrings(a, b)
	fmt.Println(strings)

	c := []int{1, 2, 3, 4, 5, 612, 7, 3, 4}
	d := 3
	ints := sort.SearchInts(c, d)
	fmt.Println(len(c))
	fmt.Println(ints)
}
